﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace NL.ADA.NotificationService
{

    public interface INotificationServiceCallBack
    {
        [OperationContract(IsOneWay = true)]
        void ServerModified(DateTime dateTime);
    }
    // NOTE: If you change the interface name "INotificationService" here, you must also update the reference to "INotificationService" in Web.config.
    [ServiceContract(CallbackContract = typeof(INotificationServiceCallBack), SessionMode = SessionMode.Required)]
    public interface INotificationService
    {

        [OperationContract]
        void NotifyServerModified(DateTime modified);
        [OperationContract]
        bool Register(int appId, int modeId);
        [OperationContract]
        bool UnRegister(int appId, int modeId);
    }

}
